<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>无标题文档</title>
    </head>

    <body>
        <?php $_from = $this->_var['left_arr']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'left');if (count($_from)):
    foreach ($_from AS $this->_var['left']):
?>
        <h3 class="f14"><span class="switchs cu on" title="<?php echo $this->_var['left']['name']; ?>"></span><?php echo $this->_var['left']['name']; ?></h3>
        <ul>
            <?php if (count ( $this->_var['left']['sub'] ) > 0): ?>
            <?php $_from = $this->_var['left']['sub']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'ls');if (count($_from)):
    foreach ($_from AS $this->_var['ls']):
?>
            <li id="_MP<?php echo $this->_var['ls']['id']; ?>" class="sub_menu">
                <a href="javascript:_MP('<?php echo $this->_var['ls']['id']; ?>','<?php echo $this->_var['ls']['url']; ?>');" hidefocus="true" style="outline:none;"><?php echo $this->_var['ls']['name']; ?></a></li>
            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
            <?php endif; ?>
        </ul>
        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>


        <script type="text/javascript">
            $(".switchs").each(function(i){
                var ul = $(this).parent().next();
                $(this).click(
                function(){
                    if(ul.is(':visible')){
                        ul.hide();
                        $(this).removeClass('on');
                    }else{
                        ul.show();
                        $(this).addClass('on');
                    }
                })
            });
        </script>
    </body>
</html>
